-- GENERATED SPELL FOR [Bloodhound Mastiff] --


function spell0_8922(pUnit, Event) --@Expose Weakness,n/a--
pUnit:FullCastSpellOnTarget(7140,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8922', 5000, 1)
end

function spell1_8922(pUnit, Event) --@Ravenous Claw,Heal--
pUnit:FullCastSpellOnTarget(15608,pUnit)
pUnit:RegisterEvent('Sorts_8922', 530, 1)
end

function Sorts_8922(pUnit, Event)
local choix_sorts_8922 = math.random(0, 1)
if choix_sorts_8922 == 0 then
pUnit:RegisterEvent('spell0_8922', 1, 1)
end
if choix_sorts_8922 == 1 then
pUnit:RegisterEvent('spell1_8922', 1, 1)
end
end

function mob8922_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8922', math.random(1500, 3000), 1)
end

function mob8922_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8922_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8922_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8922, 1, 'mob8922_Action')
RegisterUnitEvent(8922, 2, 'mob8922_Leave')
RegisterUnitEvent(8922, 3, 'mob8922_Kill')
RegisterUnitEvent(8922, 4, 'mob8922_Die')
